# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.shortcuts import render
from django.views.generic.base import View
from .models import CliCookie

from django.http import HttpResponse

# Create your views here.


class GetCliCookie(View):

	def get(self, request, cli_cookie):
		if cli_cookie:
			cliCookie = CliCookie()
			cliCookie.cli_cookie = cli_cookie
			cliCookie.save()
			return HttpResponse("success")
		else:
			return HttpResponse("fail")
 
